package com.base.common.view.adapter.bean;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

public class ChildBaseBean extends BaseObservable {

    private boolean isSelected = false;//是否选中
    private boolean isChecked = false;//是否选中
    private boolean isSpread = false;//是否展开

    @Bindable
    public boolean getSelected() {
        return isSelected;
    }

    @Bindable
    public boolean getChecked() {
        return isChecked;
    }

    @Bindable
    public boolean getSpread() {
        return isSpread;
    }


    public void setSelected(boolean selected) {
        isSelected = selected;
        notifyPropertyChanged(com.base.common.BR.selected);
    }


    public void setChecked(boolean checked) {
        isChecked = checked;
        notifyPropertyChanged(com.base.common.BR.checked);
    }


    public void setSpread(boolean spread) {
        isSpread = spread;
        notifyPropertyChanged(com.base.common.BR.spread);
    }

}
